
import request from '@/plugin/axios'

// 获取树列表
export function getcatalogtreetree (params) {
    return request({
      url: '/bdms/catalogtree/tree',
      method: 'get',
      params: request.adornParams(params)
    })
  }
// 获取分页列表
export function getcatalogtreepage (params) {
  return request({
    url: '/bdms/catalogtree/page',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取列表
export function getcatalogtreelist (params) {
  return request({
    url: '/bdms/catalogtree/list',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取信息
export function getcatalogtreeinfo (id) {
  return request({
    url: '/bdms/catalogtree/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addcatalogtree (data) {
  return request({
    url: '/bdms/catalogtree/save',
    method: 'post',
    data
  })
}

// 修改
export function updatecatalogtree (data) {
  return request({
    url: '/bdms/catalogtree/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchcatalogtree (params) {
  return request({
    url: '/bdms/catalogtree/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delcatalogtree(id) {
  return request({
    url: '/bdms/catalogtree/delete/' + id,
    method: 'delete',
  })
}